"use strict";
var User = require("./user");
var mongodb = require("mongodb");
var mongoose = require("mongoose");
;
exports.Schema = new mongoose.Schema({
    iconPath: { type: String, default: "" },
    name: String,
    manifesto: String,
    createTime: String,
    maxMembers: { type: Number, default: 200 },
    createAreaBig: String,
    createAreaSmall: String,
    longitude: String,
    latitude: String,
    owner: { type: mongodb.ObjectID, ref: "Player" },
    members: [User.Schema],
});
exports.Model = mongoose.model("Group", exports.Schema);
// export async function create(params:type):Promise<Document|undefined> {
//     let group = await Model.create({
//     })
//     return new Promise<Document>(resolve=>resolve(xxx));
// }
